export interface LoginParamType {
  userName: string;
  password: string;
}

export interface LoginResultType {
  token: string | null;
}

export interface UserContextResultType {
  userAppid: string;
  userApps: Array<[]>;
  name: string; // 姓名
  userName: string; // 账号
  menus: Array<[]>;
  permissions: Array<[]>;
  changePassword: boolean;
  isOperate: boolean;
  operaLastPage: string;
  yyLastPage: string;
  appId?: string;
  userAppObj: {
    appGhId?: string;
    appId?: string;
    appName?: string;
    appType?: string;
    id?: number;
    status?: number;
    uuid?: any;
    [key: string]: any;
  };
}

export interface ModelList {
  currentPage?: number;
  pageSize?: number;
  [keys: string]: any;
}

export interface ModeladdInfo {
  id?: number | undefined;
  name: string;
  code: string;
  realName: string;
  userName: string;
  password: string;
  phone: string;
  email?: string;
  enabled?: boolean;
  description?: string;
}

export interface ModelSetEnable {
  tenantId: number | undefined;
  enabled: boolean;
}

export interface envModel {
  environment: string;
}
